David King [Tue, 11 Aug 2015 15:06:17 +0000 (16:06 +0100)]
listbox: Describe behavior change in GtkListBoxCreateWidgetFunc
Help applicaiton authors who may already be binding GtkListBox to a
GListModel by describing the change for 3.18.
https://bugzilla.gnome.org/show_bug.cgi?id=753392
Daniel Mustieles [Wed, 12 Aug 2015 07:04:05 +0000 (09:04 +0200)]
Updated Spanish translation
Daniel Mustieles [Wed, 12 Aug 2015 07:03:50 +0000 (09:03 +0200)]
Updated Spanish translation
Matthias Clasen [Wed, 12 Aug 2015 00:57:52 +0000 (20:57 -0400)]
label: Flesh out pango attribute support
A few attribute types were missing from the support:
rise, letterspacing, fallback, font features. Add support
for these.
Kjartan Maraas [Tue, 11 Aug 2015 17:58:17 +0000 (19:58 +0200)]
Updated Norwegian bokmål translation.
Daniel Mustieles [Tue, 11 Aug 2015 10:34:59 +0000 (12:34 +0200)]
Updated Spanish translation
Matthias Clasen [Mon, 10 Aug 2015 22:09:39 +0000 (00:09 +0200)]
widget-factory: Add a lock button
Matthias Clasen [Mon, 10 Aug 2015 18:32:22 +0000 (20:32 +0200)]
font chooser: Make repeated Escape cancel the dialog
The first Escape clears the search entry, the second Escape
closes the dialog.
Matthias Clasen [Mon, 10 Aug 2015 18:21:33 +0000 (20:21 +0200)]
font chooser: Make the entry activate the default
Matthias Clasen [Mon, 10 Aug 2015 18:17:58 +0000 (20:17 +0200)]
font chooser: Use browse as selection mode
Matthias Clasen [Mon, 10 Aug 2015 18:15:26 +0000 (20:15 +0200)]
font chooser: Make Escape stop search
Georges Basile Stavracas Neto [Mon, 10 Aug 2015 18:35:56 +0000 (15:35 -0300)]
placesview: show Disconnect instead of Eject
Since we're dealing with networks, terms like "Eject" or
the eject button are misleading, since we're not actually
ejecting but disconnecting.
Fix that by showing the appropriate icon and tooltip.
Georges Basile Stavracas Neto [Mon, 10 Aug 2015 18:33:34 +0000 (15:33 -0300)]
placesview: sort by path
As pointed out by Cosimo, we should sort the
items according to their path.
Georges Basile Stavracas Neto [Mon, 10 Aug 2015 18:24:43 +0000 (15:24 -0300)]
placesview: plug a leak
Georges Basile Stavracas Neto [Mon, 10 Aug 2015 17:46:23 +0000 (14:46 -0300)]
placesview: no url for networks
We are not showing the URL of network locations
anymore, since they are distracting and not
necessary.
The code, however, forgot to cleanup the URL,
so we are still showing the URL for network
locations.
Fix that by properly cleanup the URL for network
locations.
Matthias Clasen [Mon, 10 Aug 2015 14:38:04 +0000 (16:38 +0200)]
Adwaita: Don't leak underlines
The .button:link .label selector matches any label "inside" a
link button. And a label inside the context menu counts as inside
for this purpose. This causes the text-decoration property to
leak into the context menu, even though the property is not
inherited. Avoid this by tightening the selector to
.button:link > .label.
https://bugzilla.gnome.org/show_bug.cgi?id=753451
Georges Basile Stavracas Neto [Mon, 10 Aug 2015 13:42:43 +0000 (10:42 -0300)]
placesview: jumps to the default location
When we connect to a server, the default and expected
behavior is going to the default location, which usually
is the home directory or a writable directory.
GtkPlacesSidebar behaves properly, while GtkPlacesView
doesn't.
Fix that by jumping to the default locations instead of
the root location.
Daniel Mustieles [Mon, 10 Aug 2015 07:17:16 +0000 (09:17 +0200)]
Updated Spanish translation
Matthias Clasen [Sun, 9 Aug 2015 21:39:14 +0000 (23:39 +0200)]
Remove some unused data
Matthias Clasen [Sun, 9 Aug 2015 21:39:00 +0000 (23:39 +0200)]
Remove an unused function
Matthias Clasen [Sun, 9 Aug 2015 21:38:40 +0000 (23:38 +0200)]
Remove a self-assignment
clang doesn't like those.
Matthias Clasen [Sun, 9 Aug 2015 21:31:36 +0000 (23:31 +0200)]
Fix a doc comment typo
Necdet Yücel [Sun, 9 Aug 2015 15:53:28 +0000 (15:53 +0000)]
Updated Turkish translation
Pedro Albuquerque [Sun, 9 Aug 2015 07:31:44 +0000 (07:31 +0000)]
Updated Portuguese translation
Matthias Clasen [Sat, 8 Aug 2015 21:05:53 +0000 (23:05 +0200)]
Formatting fixes
Matthias Clasen [Sat, 8 Aug 2015 20:27:29 +0000 (22:27 +0200)]
HighContrast: Fix undershoot in sidebars
This was just not implemented, and the sidebars solid white
background color was inherited by undershoot rectangle.
https://bugzilla.gnome.org/show_bug.cgi?id=753391
Kalev Lember [Sat, 8 Aug 2015 14:33:42 +0000 (16:33 +0200)]
listbox: Avoid using show_all on rows
Don't use gtk_widget_show_all() on row widgets because that would
unconditionally show all of its children. This might be unwanted in case
the row implementation wants to keep some of its children hidden.
This commit changes it to use show() instead of show_all() and relies on
the row widget to control the visibility of its children itself as
appropriate.
https://bugzilla.gnome.org/show_bug.cgi?id=753392
Aurimas Černius [Sat, 8 Aug 2015 14:09:56 +0000 (17:09 +0300)]
Updated Lithuanian translation
Jordi Mas [Sat, 8 Aug 2015 13:20:14 +0000 (15:20 +0200)]
Update Catalan translation
Christoph Reiter [Thu, 6 Aug 2015 19:36:57 +0000 (21:36 +0200)]
quartz: Implement CSD drag resize for all edges/corners
Manual resizing for CSD windows only worked with the bottom
right corner. This extends it to work for all corners and edges.
https://bugzilla.gnome.org/show_bug.cgi?id=753329
Matthias Clasen [Sat, 8 Aug 2015 08:02:49 +0000 (10:02 +0200)]
HighContrast: Improve GtkCalendar drawing
Make days gray that are not in the current month.
https://bugzilla.gnome.org/show_bug.cgi?id=753357
Matthias Clasen [Thu, 6 Aug 2015 12:51:25 +0000 (14:51 +0200)]
file chooser button: Fix some refcounting confusion
GtkFileSystem has a complicated way to handle cancellables.
You keep the cancellable pointer that is returned by
_gtk_file_system_get_info and similar methods so that you can
cancel the operation, but you do not own a reference to it.
The only place where it is ok to unref a cancellable is in
your callback, which gets handed a cancellable that you need
to unref at the end. You are expected to compare it to the
pointer you stashed away to find out if the operation has
already been superseded by a newer call, in which case you
disregard the results.
GtkFileChooserButton was following these rules for most of
the cancellables it keeps around, but it was sometimes unreffing
the cancellables that are stored in the model, which could lead
to refcount confusion and crashes. This commit makes it follow
the rules for that case too, which fixes the crash in the bug
below, and does not show up any leaks in valgrind under light
testing.
https://bugzilla.gnome.org/show_bug.cgi?id=737804
Chun-wei Fan [Thu, 30 Jul 2015 06:52:10 +0000 (14:52 +0800)]
gtk/gtkcsstypesprivate.h: Fix Build
The recent change to the enum declaration for GtkCssChange actually
relied on compiler-dependent behavior, which also breaks the build on
some non-GCC compilers, such as Visual Studio. As noted in the
G_STATIC_ASSERT line just beneath this declaration, we need to change
this enum declaration to #define's, in order to fix the build in such
situations.
https://bugzilla.gnome.org/show_bug.cgi?id=752814
Matthias Clasen [Wed, 5 Aug 2015 17:48:40 +0000 (13:48 -0400)]
3.17.6
Matthias Clasen [Wed, 5 Aug 2015 18:20:00 +0000 (14:20 -0400)]
Fix a doc comment
Matthias Clasen [Wed, 5 Aug 2015 17:48:16 +0000 (13:48 -0400)]
Documentation fixes
Matthias Clasen [Wed, 5 Aug 2015 17:36:07 +0000 (13:36 -0400)]
Updates
Ting-Wei Lan [Wed, 5 Aug 2015 15:09:03 +0000 (23:09 +0800)]
placesview: Fix wrong property type when creating a GtkLabel
The type of xalign property of GtkLabel is float, not int. Using wrong type
crashes GtkFileChooser on x86_64 when compiling with clang.
https://bugzilla.gnome.org/show_bug.cgi?id=753284
Marek Kasik [Wed, 5 Aug 2015 09:14:39 +0000 (11:14 +0200)]
GtkScrolledWindow: Don't handle key event when can't scroll
Don't return that a key event was handled when the corresponding
scrollbar can not scroll.
https://bugzilla.gnome.org/show_bug.cgi?id=753256
Jakub Steiner [Wed, 5 Aug 2015 12:05:57 +0000 (14:05 +0200)]
Adwaita: calendar button fix
- provide insensitive button state for GtkCalendar buttons
https://bugzilla.gnome.org/show_bug.cgi?id=753230
Matthias Clasen [Wed, 5 Aug 2015 02:58:40 +0000 (22:58 -0400)]
color chooser: Use a popover for the context menu
It works just as well here as it does in the file chooser, and
this lets us unify the right-click and long-press behavior a bit.
We used to switch directly to the editor on long-press, now we
can show the popover, just as we do on right-click.
Jonas Ådahl [Mon, 3 Aug 2015 06:26:39 +0000 (14:26 +0800)]
wayland: Don't assume drag context has a source window when finalizing
Only a drag context which was created with 'drag_begin' will be
guaranteed to have a source window at all times. Thus, in finalize we
cannot assume we can retrieve a GdkDisplay from the source_window
pointer since it may be NULL. Though, the display is only needed for
contexts created via 'drag_begin' thus we can retrieve it after
checking that is the case.
https://bugzilla.gnome.org/show_bug.cgi?id=749339
Carlos Garnacho [Tue, 4 Aug 2015 13:54:40 +0000 (15:54 +0200)]
gtkwindow: bail out on WM operations in the presence of grabs
These operations will require a grab on the WM side, so we can spare the
attempt from the WM to take a grab when we're certain it won't suceed.
https://bugzilla.gnome.org/show_bug.cgi?id=752327
Carlos Garnacho [Tue, 4 Aug 2015 13:49:34 +0000 (15:49 +0200)]
gtkmain: Don't process WM events if there's a grab on another toplevel
This is implicitly done for us in the case of grabs on windows from other
groups, but we must perform this check explicitly for grabs with
owner_events=True on windows from the same group, in that case the window
would handle the events as if there was no grab.
https://bugzilla.gnome.org/show_bug.cgi?id=752327
Matthias Clasen [Tue, 4 Aug 2015 11:11:34 +0000 (07:11 -0400)]
inspector: Fix a typo
Blocking a signal should be paired with unblocking.
Spotted by Krzesimir Nowak
Matthias Clasen [Tue, 4 Aug 2015 02:35:36 +0000 (22:35 -0400)]
GtkButton: Pick up images that are set early
We were failing to construct the child if an image was set
before constructed (e.g. in the init() function of a button
subclass).
https://bugzilla.gnome.org/show_bug.cgi?id=753048
Matthias Clasen [Tue, 4 Aug 2015 02:16:34 +0000 (22:16 -0400)]
HighContrast: Avoid resizing treeview headers
https://bugzilla.gnome.org/show_bug.cgi?id=753060
Matthias Clasen [Mon, 3 Aug 2015 00:58:19 +0000 (20:58 -0400)]
Whitespace fixes
Rui Matos [Sat, 1 Aug 2015 15:03:49 +0000 (17:03 +0200)]
wayland: Ensure modal hint gets set on map
We need to be mapped to have a gtk_surface and thus be able to do
requests on it so we need to save the modal hint and apply it when we
get mapped so that code that sets the hint before showing a window
doesn't get ignored.
https://bugzilla.gnome.org/show_bug.cgi?id=753138
Rui Matos [Sat, 1 Aug 2015 15:08:30 +0000 (17:08 +0200)]
wayland: Invalidate our gtk_surface when we're unmapped
Otherwise if we get mapped again we'll try to use an invalid
gtk_surface and the compositor will disconnect us.
https://bugzilla.gnome.org/show_bug.cgi?id=753138
Timm Bäder [Mon, 27 Jul 2015 13:04:18 +0000 (15:04 +0200)]
GtkLabel: Show erroneous text if parsing markup failed
https://bugzilla.gnome.org/show_bug.cgi?id=752920
Matthias Clasen [Mon, 3 Aug 2015 00:42:42 +0000 (20:42 -0400)]
file chooser: Don't leave out icons by accident
We only load thumbnails when we find that the row is in the visible
range of the treeview. It seems that animated scrolling makes it so
that the bottommost row stays out of the visible range until it is
too late. To work around this, extend the range by one row in each
direction.
http://bugzilla.gnome.org/show_bug.cgi?id=753142
Jasper St. Pierre [Sun, 2 Aug 2015 19:55:10 +0000 (12:55 -0700)]
Adwaita: Remove non-working selector
This was suppsed to be ".list-row.button", I'd imagine, but the missing
dot meant it never worked in the first place. Just clean it up.
Jasper St. Pierre [Sun, 2 Aug 2015 19:51:21 +0000 (12:51 -0700)]
Don't trigger extraneous redraws on font / text-attr changes
Any time that these change, we shouldn't need to force a redraw on
the widget either.
Jasper St. Pierre [Sun, 2 Aug 2015 19:37:03 +0000 (12:37 -0700)]
widget: Don't queue redraws for properties that don't affect anything
Properties like transition-property might change when hovering over
something, even if the property itself does not change. These properties
don't affect drawing, so don't queue redraws for them.
Jasper St. Pierre [Sun, 2 Aug 2015 19:36:28 +0000 (12:36 -0700)]
listbox: Don't queue draws on the entire widget
The set_state_flags code should already queue redraws when needed.
Jasper St. Pierre [Sun, 2 Aug 2015 19:35:45 +0000 (12:35 -0700)]
cssimage: Don't start a transition if the start and end are the same
Since a lot of Adwaita sets transition: all, it's easy to end up in a
state where we're making dummy transitions for all of the icons, most of
which we'll never be showing.
Matthias Clasen [Sun, 2 Aug 2015 19:20:17 +0000 (15:20 -0400)]
Inspector: Preserve selection when rescanning
We are semiregularly repopulating the object tree. Whenever
we do, we loose the selection, needlessly. Do the extra work
to preserve it.
http://bugzilla.gnome.org/show_bug.cgi?id=753130
Paolo Borelli [Sat, 1 Aug 2015 19:31:49 +0000 (21:31 +0200)]
cleanup: do not set members to null in finalize
Paolo Borelli [Sat, 1 Aug 2015 19:30:53 +0000 (21:30 +0200)]
cleanup: no need to set members to null when freeing the struct
Paolo Borelli [Sat, 1 Aug 2015 19:30:16 +0000 (21:30 +0200)]
cleanup: one more g_slist_free_full
Piotr Drąg [Sat, 1 Aug 2015 17:25:16 +0000 (19:25 +0200)]
Updated POTFILES.skip
Pedro Albuquerque [Sat, 1 Aug 2015 10:02:32 +0000 (10:02 +0000)]
Updated Portuguese translation
Pedro Albuquerque [Sat, 1 Aug 2015 09:55:44 +0000 (09:55 +0000)]
Updated Portuguese translation
Benjamin Otte [Sat, 1 Aug 2015 03:49:54 +0000 (05:49 +0200)]
searchenginetracker: Ignore NULL directories
Jasper St. Pierre [Sat, 1 Aug 2015 03:21:20 +0000 (20:21 -0700)]
gtkoverlay: Optimize size allocations
Doing raises / lowers here will invalidate the entire child widget
almost every time, since raising each widget causes it to invalidate
that area.
Matthias Clasen [Fri, 31 Jul 2015 21:57:04 +0000 (17:57 -0400)]
Code cleanup
Use g_slist_free_full more consistently. This commit just converts
the obvious cases where g_slist_forall is directly followed by
g_slist_free.
Jakub Steiner [Sat, 1 Aug 2015 00:21:30 +0000 (02:21 +0200)]
HC: shade spinbuttons as entries
https://bugzilla.gnome.org/show_bug.cgi?id=746491
Matthias Clasen [Fri, 31 Jul 2015 20:36:02 +0000 (16:36 -0400)]
gtk-demo: Add a scale example
Matthias Clasen [Fri, 31 Jul 2015 11:03:25 +0000 (07:03 -0400)]
file chooser: Allow activating without double-click
Interpret a unmodified primary click on the selection like a double
click. This makes it possible to activate a file or open a folder
without using double-click.
Matthias Clasen [Fri, 31 Jul 2015 17:45:17 +0000 (13:45 -0400)]
gesture single: Use gtk_simulate_touchscreen
Instead of manual tests.
Matthias Clasen [Fri, 31 Jul 2015 17:44:56 +0000 (13:44 -0400)]
text view: Use gtk_simulate_touchscreen
Instead of repeated manual tests.
Matthias Clasen [Fri, 31 Jul 2015 17:44:11 +0000 (13:44 -0400)]
entry: Use gtk_simulate_touchscreen
Instead of repeated manual checks.
Matthias Clasen [Fri, 31 Jul 2015 17:30:05 +0000 (13:30 -0400)]
Add a private function to determine if we simulate
These same two or three tests are currently duplicated
in several places, with separate static variables. Lets
do this in one place.
Jakub Steiner [Fri, 31 Jul 2015 13:42:34 +0000 (15:42 +0200)]
HC: custom color button fixes
https://bugzilla.gnome.org/show_bug.cgi?id=753051
Christian Dywan [Fri, 4 Sep 2009 12:32:00 +0000 (12:32 +0000)]
entry completion: Clarify index in documentation
https://bugzilla.gnome.org/show_bug.cgi?id=579466
Matthias Clasen [Fri, 31 Jul 2015 11:12:35 +0000 (07:12 -0400)]
testfilechooser: Say Save
Thats a more typical affirmative action in save mode.
Matthias Clasen [Fri, 31 Jul 2015 04:50:47 +0000 (00:50 -0400)]
Use pango_fc_font_map_config_changed
Use pango_fc_font_map_confit_changed() instead of
pango_fc_font_map_cache_clear().
https://bugzilla.gnome.org/show_bug.cgi?id=748772
Carlos Garnacho [Thu, 23 Jul 2015 12:26:25 +0000 (14:26 +0200)]
GtkMenuButton: explicitly protect against recursion
The visibility toggling happening on ::click() relied implicitly
on the popover animation, but breaks on disabled animations. The
recursion happening within gtk_toggle_button_set_active() (which
triggers ::clicked when changing state) makes this vfunc to run
again, inverting the visibility of the popover in result.
Fix this by explicitly checking about recursion, we want the
button to be toggled to the right state, but we don't want the
callback running again.
https://bugzilla.gnome.org/show_bug.cgi?id=752577
Benjamin Otte [Tue, 28 Jul 2015 23:12:09 +0000 (01:12 +0200)]
combobox: Refactor cell view treatment
Instead of putting it inside the button manually, put it there properly
by adding a box containing the cell view and the arrow.
Do the same thing in list mode, instead of creating an event box that
tries to behave as a button.
Benjamin Otte [Wed, 29 Jul 2015 20:25:52 +0000 (22:25 +0200)]
combobox: Handle NULLing the cellview on remove simpler
Benjamin Otte [Tue, 28 Jul 2015 17:21:15 +0000 (19:21 +0200)]
combobox: Remove unused variables
Benjamin Otte [Tue, 28 Jul 2015 16:57:48 +0000 (18:57 +0200)]
combobox: Create cell view identically
... in the two places it can be created.
Matthias Clasen [Thu, 30 Jul 2015 18:03:17 +0000 (14:03 -0400)]
file chooser: Don't crawl recent://
This is unnecessary - all the recent files are in the model already.
It also leads to duplicates, since our duplicate filtering is based
on g_file_equal, which does not consider recent:///blabla with
target-uri=/my/example to be the same as file:///my/example.
Matthias Clasen [Thu, 30 Jul 2015 14:32:44 +0000 (10:32 -0400)]
widget-factory: Test busy state
Makes it easy to test insensitive state of widgets.i
Also exposes brokenness in the shell busy indicator...
Jakub Steiner [Thu, 30 Jul 2015 12:01:32 +0000 (14:01 +0200)]
HC: no need for green in scales
Jakub Steiner [Thu, 30 Jul 2015 11:54:29 +0000 (13:54 +0200)]
HC: fix typo
Matthias Clasen [Thu, 30 Jul 2015 03:17:43 +0000 (23:17 -0400)]
Expand builder menu documentation
List the supported attributes.
Matthias Clasen [Wed, 29 Jul 2015 23:15:08 +0000 (19:15 -0400)]
gtk-demo: Move the transparent example under Overlay
Matthias Clasen [Wed, 29 Jul 2015 23:07:56 +0000 (19:07 -0400)]
gtk-demo: Rename textview demos to "Text View"
Fits better with "Tree View".
Matthias Clasen [Wed, 29 Jul 2015 23:05:25 +0000 (19:05 -0400)]
gtk-demo: Tweak the markup demo
Matthias Clasen [Wed, 29 Jul 2015 22:35:56 +0000 (18:35 -0400)]
gtk-demo: Add font features to markup demo
Matthias Clasen [Wed, 29 Jul 2015 22:28:56 +0000 (18:28 -0400)]
GtkTextView: Support font features
Add a ::font-features attribute to GtkTextTag, and support
font features when inserting Pango markup into a text buffer.
Georges Basile Stavracas Neto [Wed, 29 Jul 2015 22:37:19 +0000 (19:37 -0300)]
placesview: don't show mount for Computer row
The "Computer" row from places view is an abstract volume
that represents the root of the current partition. As such,
it cannot be mounted or unmounted.
Remove the related item on context menu for Computer row.
Christian Hergert [Wed, 29 Jul 2015 19:57:22 +0000 (12:57 -0700)]
fontchooserwidget: use appropriate model for GtkTreeIter
We were previously mixing the model used when filtering with an iter that
has been resolved to the backing model.
This results in both an invalid row index as well as an invalid
iter->stamp.
Matthias Clasen [Wed, 29 Jul 2015 19:15:10 +0000 (15:15 -0400)]
Fix oversights in templates
Some of our templates were not setting the domain attribute
on the <interface> element.
Matthias Clasen [Wed, 29 Jul 2015 17:03:56 +0000 (13:03 -0400)]
gtk3-demo: Add a markup demo
Jakub Steiner [Wed, 29 Jul 2015 11:32:34 +0000 (13:32 +0200)]
HC: make progressbar labels more visible
- use the same colro as regular labels, no
need to be more subtle
https://bugzilla.gnome.org/show_bug.cgi?id=752978
Jakub Steiner [Wed, 29 Jul 2015 11:26:42 +0000 (13:26 +0200)]
HC: make pushed columns visible
https://bugzilla.gnome.org/show_bug.cgi?id=752977
Jakub Steiner [Wed, 29 Jul 2015 11:24:11 +0000 (13:24 +0200)]
HC: provide explicit treeview styling
deals with some details like:
- DND stuff
- progressbar
- expanders
- separators
https://bugzilla.gnome.org/show_bug.cgi?id=752975